package com.ylesb.ioc.service;
/**
 * @title: UserService
 * @projectName springdemo
 * @description: TODO
 * @author White
 * @site : [www.ylesb.com]
 * @date 2022/7/710:51
 */

import com.ylesb.ioc.dao.UserDao;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.ArrayList;
import java.util.List;

/**
 * @className    : UserService
 * @description  : [描述说明该类的功能]  
 * @author       : [XuGuangchao]
 * @site         : [www.ylesb.com]
 * @version      : [v1.0]
 * @createTime   : [2022/7/7 10:51]
 * @updateUser   : [XuGuangchao]
 * @updateTime   : [2022/7/7 10:51]
 * @updateRemark : [描述说明本次修改内容] 
 */
@Service
public class UserService {
    @Autowired
    UserDao userDao;
    public List<String> getAllUsers() {
        String hello= userDao.hello();
        System.out.println("hello = " + hello);
        List<String> users = new ArrayList<>();
        for (int i = 0; i <10;i++)
        {
            users.add("xgc"+i);
        }
        return  users;
    }
}
